package com.wtf.generator.model.dto;

import com.baomidou.mybatisplus.annotation.DbType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ToString
public class DsAddDTO {
    @ApiModelProperty(name = "dbType" , value = "数据库类型")
    @NotNull(message = "请输入数据库类型")
    private DbType dbType;
    @ApiModelProperty(name = "ds" , value = "数据源")
    @NotBlank(message = "请输入数据源名称")
    private String ds;
    @ApiModelProperty(name = "host" , value = "主机地址")
    @NotBlank(message = "请输入数据库主机地址")
    private String host;
    @ApiModelProperty(name = "port" , value = "端口")
    @NotNull(message = "请输入端口")
    private Integer port;
    @ApiModelProperty(name = "username" , value = "用户")
    @NotBlank(message = "请输入用户名")
    private String username;
    @ApiModelProperty(name = "password" , value = "密码")
    @NotBlank(message = "请输入密码")
    private String password;
    @ApiModelProperty(name = "dbName" , value = "数据库")
    @NotBlank(message = "请输入数据库")
    private String dbName;

}
